﻿<UserControl x:Class="ParaBellum.gui_part.gui.modules.SparesModules"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:guiPart="clr-namespace:ParaBellum.gui_part"
             xmlns:gui2="clr-namespace:ParaBellum.gui_part.gui"
             mc:Ignorable="d"
             d:DesignHeight="500" d:DesignWidth="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="220" />
            <ColumnDefinition Width="506*" />
            <ColumnDefinition Width="117" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="5" />
            <RowDefinition />
            <RowDefinition Height="53" />
        </Grid.RowDefinitions>
        <TextBlock Text="{x:Static guiPart:Localization.handbook_For_Parts}" VerticalAlignment="Center" Margin="0,7" />
        <TextBlock x:Name="DateText" Grid.Column="2" Text="{x:Static gui2:Controller.DateNowToString}"
                   VerticalAlignment="Center" Margin="0,7" x:FieldModifier="private" />
        <DataGrid Grid.Row="4" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False"
                  SelectionMode="Single" Grid.ColumnSpan="3" Margin="0,0,0,10">
            <DataGrid.CacheMode>
                <BitmapCache />
            </DataGrid.CacheMode>
            <DataGrid.Columns>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.group}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.article}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.quantity}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.name_Of_Parts}" Width="1.4*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.characterization}" Width="1.2*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.purchase_Price}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.retail_Price}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.date_Of_The_Last_Order}" Width="1.5*">

                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static guiPart:Localization.paid}" Width="*">
                </DataGridTextColumn>
            </DataGrid.Columns>
            <Button />
        </DataGrid>
        <Grid Grid.Row="5" Grid.ColumnSpan="3">
            <Grid.RowDefinitions>
                <RowDefinition Height="21*" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="20*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="146" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="184" />
                <ColumnDefinition />
                <ColumnDefinition Width="105" />
                <ColumnDefinition Width="20" />
                <ColumnDefinition Width="105" />
                <ColumnDefinition Width="20" />
                <ColumnDefinition Width="105" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="6" Grid.RowSpan="3">
                <TextBlock Text="{x:Static guiPart:Localization.change}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button Grid.Column="4" Grid.RowSpan="3">
                <TextBlock Text="{x:Static guiPart:Localization.add}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button Grid.Column="8" Grid.RowSpan="3">
                <TextBlock Text="{x:Static guiPart:Localization.remove}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <TextBlock TextWrapping="Wrap" Text="{x:Static guiPart:Localization.search_String}" TextAlignment="Center"
                       VerticalAlignment="Center" Grid.Row="1" />
            <TextBox TextWrapping="Wrap" Grid.Column="2" Grid.Row="1" />
        </Grid>
        <Grid Grid.Row="2" Grid.ColumnSpan="3">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="5" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="255" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="77" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="76" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="77" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <TextBlock TextWrapping="Wrap" TextAlignment="Center" Text="{x:Static guiPart:Localization.group}" />
            <ComboBox Grid.Row="2" />
            <Button Grid.Column="2" Grid.RowSpan="3">
                <TextBlock Text="{x:Static guiPart:Localization.add}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button Grid.Column="4" Grid.RowSpan="3">
                <TextBlock Text="{x:Static guiPart:Localization.change}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button Grid.Column="6" Grid.RowSpan="3">
                <TextBlock Text="{x:Static guiPart:Localization.remove}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
        </Grid>

    </Grid>
</UserControl>